package com.nvr.event.status;

import com.nvr.event.Order;
import com.nvr.event.StateEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author wjwei
 */
@Component
public class OrderStateListener {

    @EventListener(condition = "#event.status eq 1")
    public void handle(StateEvent<Order> event) {
        System.out.println("customer order complete");
    }
}
